import 'package:flutter/material.dart';

class NavTitlePage extends StatelessWidget {
  final String? titleStr;
  const NavTitlePage({Key? key,this.titleStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      // alignment: Alignment.center,
      // width: MediaQuery.of(context).size.width,
      child: Text(
        titleStr!,
        overflow: TextOverflow.ellipsis,
        style: TextStyle(
          fontSize: 16,
          color: Colors.black,
          fontWeight: FontWeight.w400
        ),
      ),
    );
  }
}
